package com.yonyou.print.params;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by yijx on 2017/6/15.
 */
public class Constant {

    public static final String saveBOUrl = "/rest/bomanage/saveBo";
    public static final String upaateBOUrl="/rest/bomanage/updatebo";
    public static final String queryAllBOUrl = "/rest/bomanage/querybyapptetant";
    public static final String  copyTempUrl = "/rest/printTemplate/copytemByPk";
    public static final String  deleteTempUrl = "/rest/printTemplate/deleteprint";
    public static final String  queryAllTempUrl = "/rest/printTemplate/queryBytatent";
    public static final String queryPrintModelUrl = "/rest/directs/build";

    public static JSONObject formBOInfo(JSONObject boJSON){
        JSONObject boInfos = new JSONObject();
        boInfos.put("tenantId", ParamsEngine.getInfoConfig().getProperty("tenantId"));
        boInfos.put("bocode", boJSON.getString("bo_code"));
        boInfos.put("reportName", boJSON.getString("bo_name"));
        boInfos.put("type", "48a8206f-6759-431e-bf84-a973935e2fcc");
        boInfos.put("print_design_url", "http://" + ParamsEngine.getInfoConfig().getProperty("serviceUrl") + "/print_service/print/design");
        return boInfos;
    }
}
